package com.ruoyi.otc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.otc.domain.InvestorContributive;
import com.ruoyi.otc.mapper.InvestorContributiveMapper;
import com.ruoyi.otc.service.InvestorContributiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DataSource(DataSourceType.SLAVE)
public class InvestorContributiveServiceImpl extends ServiceImpl<InvestorContributiveMapper, InvestorContributive> implements InvestorContributiveService {


    @Autowired
    private InvestorContributiveMapper investorContributiveMapper;


    @Override
    public List<InvestorContributive> selectListBycertificateNumber(String creditCode) {
        return investorContributiveMapper.selectList(new QueryWrapper<InvestorContributive>().eq("certificate_number",creditCode));
    }
}
